Timm Bäder [Sat, 22 Apr 2017 04:35:54 +0000 (06:35 +0200)]
progressbar: Fix position of text node in CSS docs
The text node has always been a child node of the progressbar node, not
the trough node, but the docs claimed otherwise.
Matthias Clasen [Fri, 21 Apr 2017 22:27:43 +0000 (18:27 -0400)]
Fix a typo
Matthias Clasen [Fri, 21 Apr 2017 21:02:05 +0000 (17:02 -0400)]
Implement dnd for list box rows in an example
This shows very basic DND of list box rows.
Georges Basile Stavracas Neto [Tue, 11 Apr 2017 19:46:14 +0000 (16:46 -0300)]
placesview: fix testsuite
Because the network monitor can perfectly be NULL,
the tests were failing on that for GtkPlacesView
always tries to disconnect this handler.
Fix that by only disconnecting the handler when
the network monitor exists.
https://bugzilla.gnome.org/show_bug.cgi?id=781195
John Ralls [Mon, 10 Apr 2017 23:38:26 +0000 (16:38 -0700)]
Save Changes Bug 781118 - gtk 3.22.12 quartz backend segfault
Calling 'width' on an NSValue won't work, must call sizeValue on it.
Georges Basile Stavracas Neto [Mon, 10 Apr 2017 21:59:33 +0000 (18:59 -0300)]
places-view: monitor network
GtkPlacesView exposes local access points and network
shares transparently by using the 'network:///' URI,
which is handled by GIO.
Currently, however, it doesn't monitor the network
for new available points, such as computers that just
join the network. It may happen too that the backend
won't find all the networks before the network enumeration
finishes.
Fix that by keeping a file monitor inspecting the network
uri, and update the places list when that happens.
https://bugzilla.gnome.org/show_bug.cgi?id=781162
gogo [Mon, 10 Apr 2017 20:43:09 +0000 (20:43 +0000)]
Update Croatian translation
gogo [Mon, 10 Apr 2017 20:39:13 +0000 (20:39 +0000)]
Update Croatian translation
Rūdolfs Mazurs [Sun, 9 Apr 2017 10:01:38 +0000 (13:01 +0300)]
Update Latvian translation
Matthias Clasen [Sat, 8 Apr 2017 19:15:58 +0000 (15:15 -0400)]
3.22.12
Tom Tryfonidis [Sat, 8 Apr 2017 16:36:15 +0000 (16:36 +0000)]
Update Greek translation
Matthias Clasen [Thu, 6 Apr 2017 00:10:09 +0000 (20:10 -0400)]
flowbox: don’t try to focus or draw NULL widgets
Rubberbanding over an empty area results in warnings, due to the code
trying to focus and queue a null pointer for drawing.
https://bugzilla.gnome.org/show_bug.cgi?id=780734
Alberts Muktupāvels [Thu, 6 Apr 2017 08:16:12 +0000 (11:16 +0300)]
gtkheaderbar: add style classes to all title buttons
Commit
b187773053098cca1b7c23e04e096d47fbb65a5f added CSS style
classes for minimize, maximize and close buttons. Add similar classes
also to icon and menu buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=780944
Jeremy Bicha [Mon, 3 Apr 2017 17:06:51 +0000 (13:06 -0400)]
docs: Use https for more links
https://bugzilla.gnome.org/show_bug.cgi?id=780878
William Hua [Mon, 3 Apr 2017 16:59:50 +0000 (12:59 -0400)]
mir: clean up an ugly function
Olivier Fourdan [Tue, 28 Mar 2017 09:10:05 +0000 (11:10 +0200)]
gdkwindow: different displays, different classes
GdkWindow's before_process_all_updates() and after_process_all_updates()
wrongly assume that all displays are from the same class, which is not
the case if for example a client open different displays with different
backends such as X11 and Wayland.
Use the actual class for each display in the display list to avoid a
crash when mixing displays from different classes.
Fix suggested by Christian Persch <chpe@gnome.org> in bug #776472.
https://bugzilla.gnome.org/show_bug.cgi?id=776472
Emmanuele Bassi [Sun, 2 Apr 2017 15:36:07 +0000 (16:36 +0100)]
Ignore deprecation warnings for g_object_newv()
GLib has deprecated GParameter and g_object_newv(); until we switch to
the new g_object_new_with_properties() API, and bump GLib required
version, we should simply ignore the compiler warnings.
Emmanuele Bassi [Tue, 14 Mar 2017 16:35:58 +0000 (16:35 +0000)]
Optionally depend on sassc to generate the theme CSS
Instead of using Ruby/Sass to generate the CSS from SCSS files, we can
use the faster and more lightweight libsass/sassc binary.
We can keep the CSS files in Git to make it easier to dist GTK+, but we
can add rules to ensure they get rebuilt if the source SCSS changes.
https://bugzilla.gnome.org/show_bug.cgi?id=780041
John Ralls [Mon, 3 Apr 2017 01:16:59 +0000 (18:16 -0700)]
Replace NSScreen:userSpaceScaleFactor, deprecated since MacOS X 10.7.
userSpaceScaleFactor is not compatible with high-resolution (aka HiDPI)
displays.
John Ralls [Mon, 3 Apr 2017 00:55:55 +0000 (17:55 -0700)]
Add missing file and correct some warnings from quartz: Add monitor support.
Matthias Clasen [Sat, 1 Apr 2017 21:40:53 +0000 (17:40 -0400)]
quartz: Add a forgotten file
Matthias Clasen [Fri, 10 Mar 2017 13:48:36 +0000 (08:48 -0500)]
quartz: Add monitor support
This is a backport of a patch by Tom Schoonjans,
https://bugzilla.gnome.org/show_bug.cgi?id=779184
William Hua [Sat, 1 Apr 2017 14:04:50 +0000 (10:04 -0400)]
mir: set application name when creating connection
William Hua [Fri, 31 Mar 2017 21:35:49 +0000 (17:35 -0400)]
mir: remove keymap and input device state warnings
William Hua [Fri, 31 Mar 2017 19:14:16 +0000 (15:14 -0400)]
mir: re-write settings implementation
Ernestas Kulik [Thu, 30 Mar 2017 19:29:57 +0000 (22:29 +0300)]
flowbox: don’t select when rubberbanding over nothing
When rubberbanding over an empty area, everything is selected on gesture
end, which is a bit counter-intuitive.
https://bugzilla.gnome.org/show_bug.cgi?id=780735
Yosef Or Boczko [Thu, 30 Mar 2017 16:28:41 +0000 (19:28 +0300)]
Updated Hebrew translation
Yosef Or Boczko [Thu, 30 Mar 2017 16:28:31 +0000 (19:28 +0300)]
Updted Hebrew translation
Yosef Or Boczko [Thu, 30 Mar 2017 15:13:13 +0000 (18:13 +0300)]
Updated Hebrew translation
Christoph Reiter [Tue, 14 Mar 2017 20:00:37 +0000 (21:00 +0100)]
osx: fix build
https://bugzilla.gnome.org/show_bug.cgi?id=734946
Christoph Reiter [Thu, 30 Mar 2017 08:45:00 +0000 (10:45 +0200)]
gtk_widget_intersect: fix annotations
https://bugzilla.gnome.org/show_bug.cgi?id=773228
Daniel Boles [Mon, 27 Mar 2017 18:28:54 +0000 (19:28 +0100)]
TextView: Drop an unnecessary #include
Daniel Boles [Mon, 27 Mar 2017 18:14:38 +0000 (19:14 +0100)]
TextView: Be const-correct when passing a pointer
The TextIter is passed by pointer for efficiency. We neither need to
modify it, nor should we leave it possible to accidentally do so. So,
it should be passed as a pointer-to-const.
Daniel Boles [Sun, 26 Mar 2017 14:53:12 +0000 (15:53 +0100)]
TextView: Get line direction in more efficient way
We do not need to go through the heavyweight process of constructing a
TextLineDisplay just to get the direction out of it, when we can simply
use TextIter API to get the text and then get its direction using Pango.
Adapted from a patch by Mehdi Sadeghi for GtkSourceView:
https://bugzilla.gnome.org/show_bug.cgi?id=779081#c20
Daniel Boles [Sun, 26 Mar 2017 14:50:57 +0000 (15:50 +0100)]
TextBuffer: Add missing transfer full annotations
Kjell Ahlstedt [Fri, 24 Mar 2017 15:41:47 +0000 (16:41 +0100)]
printjob: Clarify array ownership in gtk_print_job_set_page_ranges()
Add a documentation annotation saying that set_page_ranges transfers
ownership of the GtkPageRange array.
Add a g_free() call to fix a memory leak when set_page_ranges is
used repeatedly.
https://bugzilla.gnome.org/show_bug.cgi?id=780234
Matthias Clasen [Thu, 23 Mar 2017 16:15:26 +0000 (16:15 +0000)]
Avoid more compiler warnings
Matthias Clasen [Thu, 23 Mar 2017 16:15:00 +0000 (16:15 +0000)]
Avoid unused variable warnings
Matthias Clasen [Thu, 23 Mar 2017 15:13:33 +0000 (15:13 +0000)]
Avoid redefining GNU_SOURCE
Gives a compiler warning with the wrong flags.
Matthias Clasen [Thu, 23 Mar 2017 15:13:13 +0000 (15:13 +0000)]
Avoid some compiler warnings
Piotr Drąg [Sat, 25 Mar 2017 21:55:00 +0000 (22:55 +0100)]
Update Polish translation
Kjartan Maraas [Sat, 25 Mar 2017 10:58:36 +0000 (11:58 +0100)]
Updated Norwegian bokmål translation.
Jordi Mas [Fri, 24 Mar 2017 18:42:57 +0000 (19:42 +0100)]
Update Catalan translation
Marek Kasik [Wed, 26 Mar 2014 11:29:46 +0000 (12:29 +0100)]
printing: Don't hang in gtk_enumerate_printers()
Stop enumerating printers when all backends were removed.
https://bugzilla.gnome.org/show_bug.cgi?id=686838
Stas Solovey [Wed, 22 Mar 2017 21:46:35 +0000 (21:46 +0000)]
Update Russian translation
Timm Bäder [Tue, 21 Mar 2017 15:06:13 +0000 (16:06 +0100)]
gdkdragsource: Ensure button >= 1
So the left shift later doesn't overflow.
Timm Bäder [Tue, 21 Mar 2017 13:40:21 +0000 (14:40 +0100)]
widget: Prepend style classes to list when parsing
Since the later gtk_style_context_add_class doesn't care about the order
of the style classes, we can as well just prepend style classes to the
list and avoid the squared behavior when appending to a linked list.
William Hua [Tue, 21 Mar 2017 15:25:36 +0000 (11:25 -0400)]
mir: always emit a resize when creating windows
Andika Triwidada [Tue, 21 Mar 2017 14:16:11 +0000 (14:16 +0000)]
Update Indonesian translation
Daniel Boles [Tue, 21 Mar 2017 00:05:32 +0000 (00:05 +0000)]
Scrollbar: grammar fix for previous commit
Daniel Boles [Mon, 20 Mar 2017 23:54:57 +0000 (23:54 +0000)]
Scrollbar: Tweak intro docs a bit
Explain where the adjustment comes from, clarify some of the wording
about how its fields influence the scrollbar, and also note that the
steppers may not be present, since they aren’t in our default themes.
Daniel Boles [Fri, 10 Mar 2017 20:37:27 +0000 (20:37 +0000)]
ScrolledWindow: Don’t check if child is Scrollable
If the child added is not a Scrollable, it gets wrapped in a ViewPort –
which is. So it is impossible to end up with a non-Scrollable child.
Just check we have /any/ child where needed, which is semantically nicer
https://bugzilla.gnome.org/show_bug.cgi?id=778853
Daniel Boles [Mon, 20 Mar 2017 23:20:26 +0000 (23:20 +0000)]
ScrolledWindow: Streamline/clarify the intro docs
• intro: Clarify that external policy and/or adjustments can be used.
• add(): Don’t waffle on about having to add a ViewPort since we handle
that transparently for the user, so they can add() any widget.
• Adjustment stuff: most of this was repeating the docs for Scrollbar,
so just refer the user to that. Also, mention how
policies NEVER and EXTERNAL interact with all this.
https://bugzilla.gnome.org/show_bug.cgi?id=778853
Daniel Boles [Mon, 20 Mar 2017 21:04:49 +0000 (21:04 +0000)]
Tooltip: Avoid redundant variable initialisations
has_tooltip_widget was assigned twice in immediate succession.
return_value is not used anywhere else in this function since commit
14a864c8b55dfe92f8957499f12a3f9303188a12 and does not need a default
value anymore, so move it to the inner scope and don't init to NULL.
Timm Bäder [Mon, 20 Mar 2017 14:36:05 +0000 (15:36 +0100)]
tooltip: Remove unused assignment
hide_tooltip gets overriden in any case 2 lines down, and return_value
isn't used later in that function. The second assignment was introduced
in
ef1da5f6c2450fc5f7c7de4a17114cc7507a41ad, directly below the first
assignment.
Timm Bäder [Mon, 20 Mar 2017 14:01:28 +0000 (15:01 +0100)]
css-editor: Remove unused if statement
The static local is set to NULL and never set to anything else, so we
never use it anyway.
Timm Bäder [Mon, 20 Mar 2017 13:16:56 +0000 (14:16 +0100)]
box: Make sure center_req is initialized
In case we have an invisible center widget, we never initialize it, but
later still use it.
Timm Bäder [Mon, 20 Mar 2017 08:22:13 +0000 (09:22 +0100)]
progressbar: Remove useless if statement
Both the if and the else block contained exactly the same code.
Timm Bäder [Sun, 19 Mar 2017 16:05:34 +0000 (17:05 +0100)]
notebook: Remove dead assignment
Timm Bäder [Sun, 19 Mar 2017 13:28:32 +0000 (14:28 +0100)]
GtkRecentManager: Remove superfluous local variable
Timm Bäder [Sun, 19 Mar 2017 13:24:54 +0000 (14:24 +0100)]
GdkX11DeviceManager: Fix debugging output
The 2 values added in 3.22 were missing from the source_names array.
Matthias Clasen [Sun, 19 Mar 2017 12:11:14 +0000 (12:11 +0000)]
3.22.11
Matthias Clasen [Fri, 17 Mar 2017 23:56:33 +0000 (19:56 -0400)]
Avoid a critical warning in the filechooser portal
This was showing up when cancelling a portal file chooser
in recipes.
Daniel Boles [Sat, 18 Mar 2017 12:29:28 +0000 (12:29 +0000)]
css-overview: Fix inconsistent British English use
Timm Bäder [Sat, 18 Mar 2017 06:13:13 +0000 (07:13 +0100)]
entrycompletion: Remove unnecessary NULL check
completion really shouldn't be NULL at this point, especially since it
gets dereferenced higher up in the function.
Timm Bäder [Sat, 18 Mar 2017 06:06:35 +0000 (07:06 +0100)]
calendar: Fix else branch indentations
Daniel Boles [Sat, 18 Mar 2017 01:13:42 +0000 (01:13 +0000)]
css-overview: Fix+Explain color expr number ranges
Last try, promise. They don’t all use 0 to 1. We should probably explain
the effects too. Hopefully this manages that while not being too verbose
Daniel Boles [Fri, 17 Mar 2017 23:55:15 +0000 (23:55 +0000)]
css-overview: Elaborate how color expressions work
Daniel Boles [Fri, 17 Mar 2017 23:25:13 +0000 (23:25 +0000)]
docs/css-overview: Fix color functions’ arg orders
shade/alpha/mix() take colour(s) and a number that is the ratio by which
to transform them. It was written here that these shall be passed in the
order (number, colour). That was wrong: they must be passed in the order
(colour[s], number) to work, and for the Inspector not to flag an error.
Christoph Reiter [Tue, 14 Mar 2017 19:53:09 +0000 (20:53 +0100)]
quartz: fix build for <10.12
The style mask type was changed from NSUInteger to NSWindowStyleMask.
Use NSUInteger so it also works on older macOS.
https://bugzilla.gnome.org/show_bug.cgi?id=780019
Matthias Clasen [Tue, 14 Mar 2017 00:52:49 +0000 (20:52 -0400)]
3.22.10
William Hua [Mon, 13 Mar 2017 14:48:43 +0000 (10:48 -0400)]
mir: start handling resize events again
William Hua [Mon, 13 Mar 2017 08:07:37 +0000 (04:07 -0400)]
mir: remove unused generate_configure_event ()
William Hua [Mon, 13 Mar 2017 07:36:30 +0000 (03:36 -0400)]
mir: set placement for menu-type windows
William Hua [Mon, 13 Mar 2017 06:52:15 +0000 (02:52 -0400)]
mir: synthesize resize events
William Hua [Mon, 13 Mar 2017 04:06:30 +0000 (00:06 -0400)]
mir: ignore resize events
William Hua [Fri, 10 Mar 2017 15:50:23 +0000 (10:50 -0500)]
mir: try mir before x11
Dušan Kazik [Sun, 12 Mar 2017 10:15:33 +0000 (10:15 +0000)]
Update Slovak translation
Dušan Kazik [Sun, 12 Mar 2017 10:02:48 +0000 (10:02 +0000)]
Update Slovak translation
Andika Triwidada [Sat, 11 Mar 2017 08:59:12 +0000 (08:59 +0000)]
Update Indonesian translation
Andika Triwidada [Sat, 11 Mar 2017 07:49:44 +0000 (07:49 +0000)]
Update Indonesian translation
Marek Černocký [Sat, 11 Mar 2017 01:12:00 +0000 (02:12 +0100)]
Updated Czech translation
Matthias Clasen [Fri, 10 Mar 2017 12:26:05 +0000 (07:26 -0500)]
quartz: Fix another typo
Matthias Clasen [Fri, 10 Mar 2017 12:09:37 +0000 (07:09 -0500)]
quartz: Fix the build
A ; was left out inadvertently.
William Hua [Wed, 8 Mar 2017 16:36:30 +0000 (11:36 -0500)]
mir: log additional event types
TingPing [Thu, 9 Mar 2017 03:52:58 +0000 (22:52 -0500)]
Improve GContentType usage
Convert to content type where needed.
Should fix various issues on Windows and OS X.
https://bugzilla.gnome.org/show_bug.cgi?id=734946
Andika Triwidada [Thu, 9 Mar 2017 03:57:10 +0000 (03:57 +0000)]
Update Indonesian translation
Andika Triwidada [Thu, 9 Mar 2017 03:56:48 +0000 (03:56 +0000)]
Update Indonesian translation
GNOME Translation Robot [Tue, 7 Mar 2017 12:17:26 +0000 (12:17 +0000)]
Update Scottish Gaelic translation
GNOME Translation Robot [Tue, 7 Mar 2017 12:11:43 +0000 (12:11 +0000)]
Update Scottish Gaelic translation
Philip Withnall [Tue, 7 Mar 2017 09:47:30 +0000 (09:47 +0000)]
tests: Fix use of C99 inline declaration
We don’t claim to use them yet, even if we perhaps should.
Daniel Boles [Tue, 7 Mar 2017 09:17:29 +0000 (09:17 +0000)]
testheightforwidth: cleanups
Daniel Boles [Tue, 7 Mar 2017 01:32:24 +0000 (01:32 +0000)]
testframe: Don’t unnecessarily query the padding
The [hv]padding variables control and hence track this.
Also, simplify the CSS using shorthand 2-value notation (again).
Daniel Boles [Mon, 6 Mar 2017 23:44:07 +0000 (23:44 +0000)]
testframe: Actually set the padding
The CSS was targeting node GtkFrame, which is wrong: it is called frame.
This commit also assumes the interesting padding is that between the
border and the child widget, not the padding around the entire Frame.
Some additional hoops must be jumped through to preserve padding values
not being changed in either callback. However, the way this is done
means I must set the initial paddings to 0, which simplifies main().
Daniel Boles [Mon, 6 Mar 2017 23:12:20 +0000 (23:12 +0000)]
testframe: Add CheckButton to toggle border off/on
We should test this.
Daniel Boles [Mon, 6 Mar 2017 23:03:37 +0000 (23:03 +0000)]
testframe: Order controls better & improve labels
The :label-widget is drawn before the child, so put the controls that
set the alignment of the :label-widget before those that pad the child.
We set (horizontal|vertical) padding, not "[xy]thickness". Also change
to "label [xy]align" & use grid spacing, not spaces at end of Labels.
Daniel Boles [Mon, 6 Mar 2017 22:55:49 +0000 (22:55 +0000)]
testframe: Minimise typecasts
Daniel Boles [Mon, 6 Mar 2017 22:53:15 +0000 (22:53 +0000)]
testframe: Set value before connecting callbacks
The value comes from the widget, and we were setting this after
connecting the callback, which applies the value to the widget…
Daniel Boles [Mon, 6 Mar 2017 22:39:01 +0000 (22:39 +0000)]
testframe: Use a generic widget pointer
Daniel Boles [Mon, 6 Mar 2017 20:57:17 +0000 (20:57 +0000)]
testheightforwidth: Add missing unref